package com.syni.mdd.yhd.common.all.listen.comment;

import com.syni.mdd.yhd.common.all.entity.BmsDxAnswer;
import com.syni.mdd.yhd.common.all.entity.BmsDxComment;
import com.syni.mdd.yhd.common.all.entity.BmsVideo;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @className CommentEvent
 * @description TOO
 * @Author cfx
 * @DATE 2019/8/29 21:22
 * @VERSION 1.0
 **/
@Data
public class CommentEvent extends ApplicationEvent {
    private BmsDxComment bmsDxComment;
    private BmsVideo bmsVideo;
    private Integer userId;
    private BmsDxAnswer bmsDxAnswer;
    private BmsDxAnswer replyAnswer;
    public CommentEvent(Object source, BmsDxComment bmsDxComment,BmsVideo bmsVideo,Integer userId) {
        super(source);
        this.bmsDxComment = bmsDxComment;
        this.bmsVideo = bmsVideo;
        this.userId = userId;
    }
    public CommentEvent(Object source, BmsDxComment bmsDxComment, BmsVideo bmsVideo,BmsDxAnswer bmsDxAnswer) {
        super(source);
        this.bmsDxComment = bmsDxComment;
        this.bmsVideo = bmsVideo;
        this.bmsDxAnswer = bmsDxAnswer;
    }
    public CommentEvent(Object source, BmsVideo bmsVideo,BmsDxAnswer replyAnswer,BmsDxAnswer bmsDxAnswer) {
        super(source);
        this.bmsVideo = bmsVideo;
        this.bmsDxAnswer = bmsDxAnswer;
        this.replyAnswer = replyAnswer;
    }
}
